package com.liveinstars.im.common.enums;

import java.util.HashMap;

/**
 * @author: zhouze
 * @date: 2020/3/4
 */
public enum GroupBigClassEnum {

    COMPREHENSIVE(1, "综合"),
    TECHNIQUE(2, "技术"),
    PROJECT(3, "项目"),
    PLATFORM(4, "平台"),
    MARKET_QUOTATIONS(5, "行情"),
    MINING(6, "挖矿"),
    ;

    private String text;
    private int value;

    GroupBigClassEnum( int value, String text) {
        this.text = text;
        this.value = value;
    }

    private static HashMap<Integer, GroupBigClassEnum> enumValueMap = new HashMap<>();

    static {
        for (GroupBigClassEnum groupBigClassEnum : GroupBigClassEnum.values()) {
            enumValueMap.put(groupBigClassEnum.getValue(), groupBigClassEnum);
        }
    }

    public static GroupBigClassEnum valueOf(int value) {
        return enumValueMap.get(value);
    }

    public String getText() {
        return text;
    }

    public int getValue() {
        return value;
    }
}
